package one.stand.service;

import com.jmp.base.dto.GoodsGroupBuyingDto;
import one.stand.dto.GoodsDetailDto;
import one.stand.dto.GoodsTypeDto;
import one.stand.model.GoodSpec;
import one.stand.model.Goods;

import java.util.List;

/**
 * @author cjr
 */
public interface GoodsBaseService {
    Goods get(Integer goodsId);

    Goods getOn(Integer goodsId);

    GoodSpec getSpec(Integer specId);

    List<GoodSpec> getSpecs(Integer goodsId);

    List<GoodsTypeDto> getTypes(Integer goodsId);

    boolean hasAr(Integer goodsId);

    void deleteByCompanyId(Integer companyId);

    String getDetails(GoodsDetailDto goodsDetailDto);

    GoodsDetailDto getDetails(String detail);

    GoodsGroupBuyingDto getGroup(Integer groupId);

    String getGroupShareH5Url(Integer cardId, Integer groupId, String groupPrice);
}
